package com.mytest;

public class ThreadDownLoad {

    public static void main(String[] args) {

        new Thread(() -> {
            MyDownLoad.webDownLoad("https://ss0.bdstatic.com/94oJfD_bAAcT8t7mm9GUKT-xh_/timg?image&quality=100&size=b4000_4000&sec=1585469512&di=31d007118462b371330914d2162fdebb&src=http://a3.att.hudong.com/14/75/01300000164186121366756803686.jpg","1");
            System.out.println(Thread.currentThread().getName());
        }).start();
        new Thread(() -> {
            MyDownLoad.webDownLoad("https://ss0.bdstatic.com/94oJfD_bAAcT8t7mm9GUKT-xh_/timg?image&quality=100&size=b4000_4000&sec=1585469512&di=31d007118462b371330914d2162fdebb&src=http://a3.att.hudong.com/14/75/01300000164186121366756803686.jpg","2");
            System.out.println(Thread.currentThread().getName());
        }).start();
        new Thread(() -> {
            System.out.println(Thread.currentThread().getName());
            MyDownLoad.webDownLoad("https://ss0.bdstatic.com/94oJfD_bAAcT8t7mm9GUKT-xh_/timg?image&quality=100&size=b4000_4000&sec=1585469512&di=31d007118462b371330914d2162fdebb&src=http://a3.att.hudong.com/14/75/01300000164186121366756803686.jpg","3");
        }).start();
    }
}
